﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlStarterKit.ascx.cs" Inherits="UserControl_ControlStarterKit" %>
<%@ Import Namespace="webapp4U" %>
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc1" %>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <div class="direct_container_right_titletop">
                     Quản lý thông tin hàng Starter Kit
                </div>
                 <hr />
                <!-- Button chuc nang-->
                <div class="direct_container_main">
                    <asp:ImageButton ID="imgBtnAdd" onclick="imgBtnAdd_Click" CausesValidation="false" ImageUrl="~/Images/add.png" Width="32px" Height="32px" runat="server" />
                    <asp:ImageButton ID="imgBtnSave" onclick="imgBtnSave_Click" ImageUrl="~/Images/save.png" Width="32px" Height="32px" runat="server" />
                    <asp:ImageButton ID="imgBtnDelete" onclick="imgBtnDelete_Click" ImageUrl="~/Images/delete.png" Width="32px" Height="32px" runat="server" />
                    <asp:ImageButton ID="imgBtnFind" onclick="imgBtnFind_Click" CausesValidation="false" ImageUrl="~/Images/find.png" Width="32px" Height="32px" runat="server" />

                </div>
                <!-- End Button chuc nang-->
                 <!-- Content main-->
                <div class="direct_container_main">
                    <div class="direct_container_form_right">
                        <table border="0" width="100%">
                            <tr>
                                <td width="10%" align="right"><p class="direct_label">Mã hàng</p></td>
                                <td width="90%" align="left">
                                    <asp:TextBox ID="txtMaHang" CssClass="input_code" runat="server" AutoPostBack="True" 
                                        ontextchanged="txtMaHang_TextChanged"></asp:TextBox>



                                     <div id="divwidthMaHang" style="overflow:scroll;height:150px;display:none"></div>
                                            <cc1:AutoCompleteExtender ID="txtMaHang_AutoCompleteExtender" 
                                                runat="server"
                                                ServiceMethod="GetMatHangInfo" ServicePath="~/Webservice/WebServiceDRM.asmx" 
                                                TargetControlID="txtMaHang"
                                                MinimumPrefixLength="1" 
                                                CompletionInterval="10"
                                                CompletionSetCount="12"                             
                                                CompletionListCssClass="AutoExtender"
                                                CompletionListItemCssClass="AutoExtenderList"
                                                CompletionListHighlightedItemCssClass="AutoExtenderHighlight"
                                                CompletionListElementID="divwidthMaHang" DelimiterCharacters="" 
                                        Enabled="True"></cc1:AutoCompleteExtender>



                                     <asp:TextBox ID="txtTenHang" CssClass="input_full" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">Lưới dữ liệu để o đây</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <!-- EndContent main-->
    </ContentTemplate>
</asp:UpdatePanel>
<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />